tests: Port to glib-tap.mk, make `make check` run all of the tests
authorColin Walters <walters@verbum.org>
Wed, 2 Mar 2016 15:28:04 +0000 (10:28 -0500)
committerColin Walters <walters@verbum.org>
Thu, 3 Mar 2016 13:50:19 +0000 (08:50 -0500)
commitd25212f04ac824afff9f45e61be3d8e63be174f2
treef9efa0baed1854462db1b4f7b1fd35b96d4edc1b
parent6d73a620e19dfc982fa08363aed441e0175c8d7b
tests: Port to glib-tap.mk, make `make check` run all of the tests

OSTree's code for testing predates the `glib-tap.mk` making its
way into GLib.  Let's switch to it, as it provides a number
of advantages.

By far the biggest advantage is that `make check` can start to run
most of the tests *in addition* to having them work installed.

This commit keeps the installed tests working, but `make check` turns
out to be really broken because...our TAP usage has bitrotted to say
the least.  Fix that all up.

Do some hacks so that the tests work uninstalled as well - in
particular, `glib-tap.mk` and the bits encoded into
`g_test_build_filename()` assume *recursive* Automake (blah).  Work
around that by creating a symlink when installed to loop back.
48 files changed:
Makefile-tests.am
Makefile.am
buildutil/glib-tap.mk [new file with mode: 0644]
buildutil/glibtests.m4 [new file with mode: 0644]
buildutil/tap-driver.sh [new file with mode: 0755]
buildutil/tap-test [new file with mode: 0755]
cfg.mk
configure.ac
tests/admin-test.sh
tests/basic-test.sh
tests/gpghome/pubring.gpg [new symlink]
tests/libtest.sh [changed mode: 0644->0755]
tests/pull-test.sh
tests/test-admin-deploy-2.sh
tests/test-admin-deploy-clean.sh [changed mode: 0644->0755]
tests/test-admin-deploy-etcmerge-cornercases.sh [changed mode: 0644->0755]
tests/test-admin-deploy-karg.sh [changed mode: 0644->0755]
tests/test-admin-deploy-switch.sh
tests/test-admin-deploy-syslinux.sh
tests/test-admin-deploy-uboot.sh
tests/test-admin-instutil-set-kargs.sh [changed mode: 0644->0755]
tests/test-admin-locking.sh [changed mode: 0644->0755]
tests/test-admin-pull-deploy-commit.sh [changed mode: 0644->0755]
tests/test-admin-upgrade-not-backwards.sh [changed mode: 0644->0755]
tests/test-admin-upgrade-unconfigured.sh [changed mode: 0644->0755]
tests/test-archivez.sh
tests/test-auto-summary.sh
tests/test-basic.sh
tests/test-commit-sign.sh
tests/test-delta.sh
tests/test-gpg-signed-commit.sh [changed mode: 0644->0755]
tests/test-gpg-verify-result.c
tests/test-libarchive.sh
tests/test-oldstyle-partial.sh [changed mode: 0644->0755]
tests/test-prune.sh [changed mode: 0644->0755]
tests/test-pull-archive-z.sh
tests/test-pull-depth.sh [changed mode: 0644->0755]
tests/test-pull-large-metadata.sh [changed mode: 0644->0755]
tests/test-pull-metalink.sh
tests/test-pull-mirror-summary.sh
tests/test-pull-subpath.sh [changed mode: 0644->0755]
tests/test-pull-summary-sigs.sh [changed mode: 0644->0755]
tests/test-refs.sh [changed mode: 0644->0755]
tests/test-remote-add.sh
tests/test-remote-gpg-import.sh
tests/test-repo-checkout-subpath.sh
tests/test-setuid.sh
tests/test-sysroot.js